package com.example.client.common;

import com.example.common.util.core.resultbody.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author juzipi
 * @Date 2021/7/12 17:17
 * @Info
 */
@FeignClient(name = "service-common", contextId = "t1")
public interface DictFeignClient {


    @GetMapping("admin/common/dict/getName/{dictCode}/{value}")
    public AjaxResult getName(@PathVariable("dictCode") String dictCode, @PathVariable("value") String value);

    @GetMapping("admin/common/dict/getName/{value}")
    public AjaxResult getName(@PathVariable("value") String value);

}
